from typing import List

from pydantic import BaseModel, Field

from schema.resp_schema.base_schema import BaseRespModel


class CurrencyModel(BaseModel):
    code: str
    name: str
    symbol: str


class ListCurrencyResponseModel(BaseRespModel):
    data: List[CurrencyModel] = Field(None)


class CurrencyIDResponseModel(BaseModel):
    currency_id: int


class AddNewCurrencyResponseModel(BaseRespModel):
    data: CurrencyIDResponseModel = Field(...)